package servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import entity.User_Inf;
import service.PermissionsService;
import service.impl.PermissionsServiceImpl;

public class PermissionsServlet extends HttpServlet {
	
	 private PermissionsService ps	= new PermissionsServiceImpl();
    
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String username = "欧阳旭";
		User_Inf ui = ps.Permissionusername(username);
		
		System.out.println(ui);
		System.out.println(ui.getRole_Id());
		/*request.getSession().getAttribute();
		if () {
			
		}*/
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request, response);
	}

}
